//这里配置Home下面所有子路由的路由配置
//一个路由要满足的条件，必须符合一个routers的格式  一个数组，里面有很多的对象，对象中使用path，对应component

const allRoutes = [
    {
        path: "mine",
        name: "mine", //具名路由
        component: () =>
            import( /*webpackChunkName:"mine"*/ "../pages/Home/Mine/index.vue"),
        //路由元信息
        meta: {
            //储存一些用户定义的属性
            name: "我的中心",
            icon: "iconfont icon-wode3", //储存菜单对应的图标类名
            fullPath: "/mine" //当前路由的完整路径
        }
    },
    {
        path: "welcome",
        name: "welcome",
        component: () =>
            import( /*webpackChunkName:"welcome"*/ "../pages/Home/welcome/index.vue"),
        //路由元信息
        meta: {
            //储存一些用户定义的属性
            fullPath: "/welcome",
            name: "管理首页",
            icon: "iconfont icon-shouye"
        }
    },
    {
        path: "Users",
        name: "Users",
        component: () =>
            import( /*webpackChunkName:"Users"*/ "../pages/Home/Users/index.vue"),
        //路由元信息
        meta: {
            //储存一些用户定义的属性
            fullPath: "/Users",
            name: "用户管理",
            icon: "iconfont icon-a-xueyuanziliaoxinxi"
        }
    },
    {
        path: "Attendance",
        name: "Attendance",
        component: () =>
            import( /*webpackChunkName:"Attendance"*/ "../pages/Home/Attendance/index.vue"),
        //路由元信息
        meta: {
            //储存一些用户定义的属性
            fullPath: "/Attendance",
            name: "考勤管理",
            icon: "iconfont icon-kaoqinguanli"
        }
    },
    {
        path: "Statistics",
        name: "Statistics",
        component: () =>
            import( /*webpackChunkName:"Statistics"*/ "../pages/Home/Statistics/index.vue"),
        //路由元信息
        meta: {
            //储存一些用户定义的属性
            fullPath: "/Statistics",
            name: "数据统计",
            icon: "iconfont icon-shujutongji"
        }
    },
    {
        path: "/StudentManager",
        component: () =>
            import(
                /*webpackChunkName:"studentManager" */
                "../pages/Home/StudentManager/index.vue"
            ),
        name: "StudentManager",
        redirect: "/StudentProduct",
        meta: {
            //储存一些属性
            fullPath: "/StudentManager",
            icon: "iconfont icon-xueyuanguanli",
            name: "学员管理",
        },
        children: [{
            path: "/StudentDormitory",
            component: () =>
                import(
                    /*webpackChunkName:"StudentDormitory" */
                    "../pages/Home/StudentManager/StudentDormitory"
                ),
            name: "StudentDormitory",
            meta: {
                //储存一些属性
                fullPath: "/StudentManager/StudentDormitory",
                icon: "iconfont icon-zhuye",
                name: "学员宿舍",
            },
        },
        {
            path: "/StudentProduct",
            component: () =>
                import(
                    /*webpackChunkName:"StudentProduct" */
                    "../pages/Home/StudentManager/StudentProduct"
                ),
            name: "StudentProduct",
            meta: {
                //储存一些属性
                fullPath: "/StudentManager/StudentProduct",
                icon: "iconfont icon-dingdan",
                name: "学员项目管理",
            },
        },
        {
            path: "/StudentProfile",
            component: () =>
                import(
                    /*webpackChunkName:"StudentProfile" */
                    "../pages/Home/StudentManager/StudentProfile"
                ),
            name: "StudentProfile",
            meta: {
                //储存一些属性
                fullPath: "/StudentManager/StudentProfile",
                icon: "iconfont icon-bingzhuangtu",
                name: "学员资料"
            },
        },
        ],
    },
];


export default allRoutes;